package com.liu.text;

import com.liu.proxyDemo.Student;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class text {
    public static void main(String[] args) {
        ApplicationContext applicationContext = new ClassPathXmlApplicationContext("StudentBean.xml");//可以读取多个
        Student student = (Student) applicationContext.getBean("Student");
        System.out.println(student.toString());
        //输出结果
        //结果
        // Student{
        // name='青双',
        // address=com.liu.proxyDemo.Address@5bc79255,
        // strings=[《西游记》, 《金瓶梅》],
        // ints=[1, 2], sets=[1, 2],
        // stringStringMap={key=value, key2=value2, key3=value3},
        // properties={dirver=123, dirver3=123, dirver2=123},
        // wife='null'}
    }
}
